import request from '../../utils/request';

//获取用户列表
export function userInfo(params) {
    return request({
        url: '/users/usersInfo/userList',
        method: 'get',
        params
    })
}
// 新增用户数据
export function addUsers(data) {
    return request({
        url: '/users/usersInfo/addUser',
        method: 'post',
        data
    })
}
// 删除用户
export function deleteUser(data) {
    return request({
        url: '/users/usersInfo/deleteUser',
        method: 'delete',
        data
    })
}
// 编辑用户
export function editUser(data) {
    return request({
        url: '/users/usersInfo/editUser',
        method: 'put',
        data
    })
}

